//
//  WLCardCollectionCell.m
//  WanLian
//
//  Created by muzhuang on 2018/10/18.
//  Copyright © 2018年 wanlian. All rights reserved.
//

#import "WLCardCollectionCell.h"

@implementation WLCardCollectionCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        _ivBack = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
        [self.contentView addSubview:_ivBack];
        
        _labPrice = [[UILabel alloc] initWithFrame:CGRectMake(frame.size.width-120, 0, 110, 70)];
        _labPrice.font = [WLCommonTool fontTypePingFangSCRegular:16];
        _labPrice.textColor = [UIColor whiteColor];
        _labPrice.textAlignment = NSTextAlignmentCenter;
//        _labPrice.text = @"¥1000";
        [self.contentView addSubview:_labPrice];
        
        UILabel *labCardTip = [[UILabel alloc] initWithFrame:CGRectMake(WLScaleX(28), WLScaleX(95), 32, 20)];
        labCardTip.font = [WLCommonTool fontTypePingFangSCRegular:14];
        labCardTip.textColor = [UIColor whiteColor];
        labCardTip.text = @"卡号";
        [self.contentView addSubview:labCardTip];
        
        _labCardNum = [[UILabel alloc] initWithFrame:CGRectMake(WLScaleX(38)+32, WLScaleX(95), 200, 20)];
        _labCardNum.font = [WLCommonTool fontTypePingFangSCRegular:12];
        _labCardNum.textColor = [UIColor whiteColor];
        [self.contentView addSubview:_labCardNum];
        
        UILabel *labPwdTip = [[UILabel alloc] initWithFrame:CGRectMake(WLScaleX(28), WLScaleX(95)+25, 32, 20)];
        labPwdTip.font = [WLCommonTool fontTypePingFangSCRegular:14];
        labPwdTip.textColor = [UIColor whiteColor];
        labPwdTip.text = @"卡密";
        [self.contentView addSubview:labPwdTip];
        
        _labPwd = [[UILabel alloc] initWithFrame:CGRectMake(WLScaleX(38)+32, WLScaleX(95)+25, 150, 20)];
        _labPwd.font = [WLCommonTool fontTypePingFangSCRegular:12];
        _labPwd.textColor = [UIColor whiteColor];
        [self.contentView addSubview:_labPwd];
        
        _btnEye = [[UIButton alloc] initWithFrame:CGRectMake(WLScaleX(38)+32+135, WLScaleX(95)+20, 40, 30)];
        [self.contentView addSubview:_btnEye];
    }
    return self;
}

@end
